package com.example.communitypro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.sql.Timestamp;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel(description = "消息记录")
public class Message {
    private Integer messageId;
    private Integer sender;
    private Integer receiver;
    private String content;
    private Integer type;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp sendTime;
    private Integer isRead;
    private Integer listId;
    private Boolean isMine;
}
